<template>
  <div id="app">
    <el-container>
      <el-header>
        <VHeader>头部</VHeader>
      </el-header>
      <el-container>
        <el-aside width="200px">
          <NavMenu></NavMenu>
        </el-aside>
        <el-container>
          <el-main>
            <!--<p>主体内容部分走路由</p>-->
            <router-view></router-view>

          </el-main>
        </el-container>
      </el-container>
    </el-container>
  </div>
</template>

<script>
  import VHeader from './components/VHeader'
  import NavMenu from './components/NavMenu'
  import Container from './components/Container'
export default {
  name: 'App',
  components:{
    'VHeader':VHeader,//  'VHeader'是组件的name后面的与的是导入要用的标签名称
    'NavMenu':NavMenu,
    'Container':Container
  }
}
</script>

<style scoped>
/*#app {*/
  /*font-family: 'Avenir', Helvetica, Arial, sans-serif;*/
  /*-webkit-font-smoothing: antialiased;*/
  /*-moz-osx-font-smoothing: grayscale;*/
  /*text-align: center;*/
  /*color: #2c3e50;*/
  /*margin-top: 60px;*/
/*}*/
.el-header{
  background-color: #B3C0D1;
  color: #333;
  text-align: center;
  line-height: 60px;
  padding: 0;
}

.el-aside {
  background-color: #D3DCE6;
  color: #333;
  text-align: center;
  line-height: 200px;

}

.el-main {
  background-color: #E9EEF3;
  color: #333;
  text-align: center;
  line-height: 160px;
}

body > .el-container {
  margin-bottom: 40px;
}

.el-container:nth-child(5) .el-aside,
.el-container:nth-child(6) .el-aside {
  line-height: 260px;
}

.el-container:nth-child(7) .el-aside {
  line-height: 320px;
}
  /*/////////////////*/

</style>
